<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .box {
            width: 1000px;
            height: 800px;
            /*背景颜色*/
            /*background-color: #f00;*/
            /*背景图片*/
            /*background-image: url("img/touxiang.jpg");*/
            /*背景平铺*/
            /*background-repeat: no-repeat;*/
            /*背景定位*/
            /*background-position: center;*/
            /*背景大小*/
            /*background-size: cover;*/
            /*多个属性的简写*/
            background: #f00 url("img/touxiang.jpg") no-repeat center/cover;

        }
    </style>
</head>
<body>
<div class="box"></div>
</body>
</html>
